﻿function BookLib (old) {
};

BookLib.prototype.AddBook = function (book) {
    if (!this.Books) {
        this.Books = [] ;
    }
    this.Books.push(book);
}

BookLib.prototype.Books = [];

BookLib.prototype.GetTopBook = function () {
    if (!this.Books) {
        this.Books = [];
    }
    else {
        return this.Books[0];
    }
}

